package org.geektimes.di.servlet;

import org.geektimes.di.context.ComponentContext;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.HandlesTypes;
import java.util.Set;

/**
 * @author : zghuang
 * @date : 2021/3/25 10:58
 */
//@HandlesTypes(WebApplicationInitializer.class)
public class ComponentContextInitailizer implements ServletContainerInitializer {
    @Override
    public void onStartup(Set<Class<?>> set, ServletContext servletContext) throws ServletException {
        ComponentContext context = new ComponentContext();
        context.init(servletContext);
    }

}
